import { mpHttp } from '@/utils/request'

// 常用旅客列表
export function getGuest(data) {
  return mpHttp({
    url: `/front/api/v1/guest`,
    method: 'get',
    data: data
  })
}
// 创建编辑旅客
export function createAndEditGuest(data) {
  return mpHttp({
    url: '/front/api/v1/guest',
    method: 'post',
    data: data
  })
}
// 删除旅客
export function deleteGuest(uid) {
  return mpHttp({
    url: `/front/api/v1/guest/${uid}`,
    method: 'delete'
  })
}
// 订单详情
export function orderDetails(uid) {
  return mpHttp({
    url: `/front/api/v1/order/ticket/${uid}`,
    method: 'get'
  })
}

// 获取销售二维码
export function getQrcode() {
  return mpHttp({
    url: '/front/api/v1/agent/qrcode',
    method: 'get'
  })
}
